<?php
class ResultParser {
    protected   $parseEngine;

    function __construct($engine = null) {
        $this->parseEngine    =    $engine;

    }

    public function setParserEngine($engine) {
    	$this->parseEngine =   $engine;
    }

    public function parse($file, $fullFileName, $thumbnailFileName, $extension, $thumbnailWidth, $thumbnailHeight, $proportion = true) {
    	return $this->parseEngine->parse($file, $fullFileName, $thumbnailFileName, $extension, $thumbnailWidth, $thumbnailHeight, $proportion = true);
    }
}
?>